Skip to content

Conversation

@japgolly
Copy link
Contributor

Calling .disabled on elements like HTMLImageElement, HTMLDivElement, HTMLParagraphElement type-checks and causes this nastiness (at least in Chrome):

Uncaught scala.scalajs.runtime.UndefinedBehaviorError:
An undefined behavior was detected: undefined is not an instance of java.lang.Boolean

Calling `.disabled` on elements like `HTMLImageElement`, `HTMLDivElement`, `HTMLParagraphElement` type-checks and causes this nastiness (at least in Chrome):

```
Uncaught scala.scalajs.runtime.UndefinedBehaviorError: An undefined behavior was detected: undefined is not an instance of java.lang.Boolean
```
@sjrd
Copy link
Member

sjrd commented Dec 28, 2015

LGTM

sjrd added a commit that referenced this pull request Dec 28, 2015
Html.disabled can be undefined
@sjrd sjrd merged commit 57b8bf8 into scala-js:master Dec 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants